package ilincar.systemcore.location;

import java.math.BigDecimal;

/**
 * Created by ilincar on 2016/12/13.
 * 通过经纬度获取城市信息
 * 通过经纬度获取天气信息
 */

public class AmapUtils {

    public static final String AMAP_KEY_VALUE = "b90a20d70338a8d43d9862f6740e6f92";

    public static double get6double(double value){
        double data = value;
        BigDecimal bigDecimal = new BigDecimal(data);
        value = bigDecimal.setScale(6, BigDecimal.ROUND_HALF_UP).doubleValue();
        return value;
    }
}
